﻿<telerik:RadWindow x:Class="FXC.SL.UserControls.Window.ChartProperty"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Height="380" Width="480"
    mc:Ignorable="d" Header="属性" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" Background="Silver"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <!--<sdk:TabControl Height="360" HorizontalAlignment="Left" Name="tabControl1" VerticalAlignment="Top" Width="548">
            <sdk:TabItem Header="颜色" Name="tabItem1" >
            </sdk:TabItem>
        </sdk:TabControl>-->
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
        </Grid.RowDefinitions>
        <telerik:RadTabControl Grid.Column="0" Grid.Row="0">
            <telerik:RadTabItem Header="颜色">
                <telerik:RadTabItem.Content>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="90" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="30" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2">
                            <TextBlock Margin="5,0,0,0" HorizontalAlignment="Left" Text="Theme:" VerticalAlignment="Center"/>
                            <ComboBox Height="23" Width="150" Margin="10,0,0,0" HorizontalAlignment="Left" Name="cbTheme" VerticalAlignment="Center" />
                            <RadioButton Content="仅应用于当前图表" VerticalAlignment="Center" Margin="30,0,5,0" IsChecked="True" GroupName="A" />
                            <RadioButton Content="应用于所有图表" VerticalAlignment="Center" GroupName="A" />
                        </StackPanel>
                        <telerik:RadChart Grid.Column="0" Grid.Row="1" Name="sampleChart"></telerik:RadChart>
                        <Grid Grid.Row="1" Grid.Column="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="*" />
                                <RowDefinition Height="*" />
                                <RowDefinition Height="*" />
                                <RowDefinition Height="*" />
                                <RowDefinition Height="*" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="背   景:" Style="{StaticResource RadColorPickerTitle}" />
                                <telerik:RadColorPicker Name="rcpBackground" VerticalAlignment="Center" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Grid.Row="1">
                                <TextBlock Text="前   景:" Style="{StaticResource RadColorPickerTitle}" />
                                <telerik:RadColorPicker Name="rcpForeground" VerticalAlignment="Center" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Grid.Row="2">
                                <TextBlock Text="栅   格:" Style="{StaticResource RadColorPickerTitle}" />
                                <telerik:RadColorPicker Name="rcpGrid" VerticalAlignment="Center" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Grid.Row="3">
                                <TextBlock Text="柱   外:" Style="{StaticResource RadColorPickerTitle}" />
                                <telerik:RadColorPicker Name="rcpBarStroke" VerticalAlignment="Center" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Grid.Row="4">
                                <TextBlock Text="柱   内:" Style="{StaticResource RadColorPickerTitle}" />
                                <telerik:RadColorPicker Name="rcpBarFill" VerticalAlignment="Center" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Grid.Row="5">
                                <TextBlock Text="成交量:" Style="{StaticResource RadColorPickerTitle}" />
                                <telerik:RadColorPicker Name="rcpVolume" VerticalAlignment="Center" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Grid.Row="6">
                                <TextBlock Text="线   图:" Style="{StaticResource RadColorPickerTitle}" />
                                <telerik:RadColorPicker Name="rcpLineType" VerticalAlignment="Center" />
                            </StackPanel>
                        </Grid>
                    </Grid>
                </telerik:RadTabItem.Content>
            </telerik:RadTabItem>
            <telerik:RadTabItem Header="常规" />
        </telerik:RadTabControl>
        
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
            <Button Content="重置" Grid.Row="1" Height="23" Name="btnReset" Width="75" Click="btnReset_Click" />
            <Button Content="确定" Grid.Row="1" Height="23" Name="btnOK" Width="75" Click="btnOK_Click" />
            <Button Content="取消" Grid.Row="1" Height="23" Name="btnCancel" Width="75" Click="btnCancel_Click" />
        </StackPanel>
    </Grid>
</telerik:RadWindow>
